package com.serene.authority.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.serene.authority.admin.entity.MyUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author serene
 * @createTime 2020/7/10
 */

@Mapper
public interface UserMapper extends BaseMapper<MyUser> {

    /**
     * 分页返回所有用户
     *
     * @param myUser
     * @return
     */
    List<MyUser> getFuzzyUserByPage(MyUser myUser);

    /**
     * 更新用户
     *
     * @param myUser
     * @return
     */
    int updateUser(MyUser myUser);

}
